#include "Flag.h"

Flag::Flag()
{
	flag = 0;
}

void Flag::set(unsigned char f) volatile
{
	flag = f;
}

unsigned char Flag::get() volatile
{
	return flag;
}

BitFlag Flag::getBit(unsigned char bit) volatile
{
	BitFlag f = BitFlag(&flag, bit);
	return f;
}

BitFlag Flag::operator[](unsigned int index) volatile
{
	return getBit(index);
}


Flag& Flag::operator=(const Flag& f) volatile
{
	flag = f.flag;
}

